/*
 * @Description: 步态分析数据接口
 * @Author: Liu Kunpeng
 * @Date: 2021-07-14 19:24:04
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-11-26 21:12:13
 */
import request from '@/utils/request'
//获取所有病人信息
export function getAllPatientsApi(queryInfo){
    return request({
        url: '/admin/organization/patientfoot/getAll',
        method: 'get',
        params: queryInfo
    })
}
//下载PDF接口
export function downloadGaitApi(id){
    return request({
        url: '/scanning/downloadFile/downloadGaitPdf/' + id,
        method: 'get',
        responseType: 'blob',
        onDownloadProgress (progress) {
            console.log(Math.round(progress.loaded / progress.total * 100) + '%');
           }
    })
}
export function downloadBalanceApi(id){
    return request({
        url: '/scanning/downloadFile/downloadBalancePdf/' + id,
        method: 'get',
        responseType: 'blob'
    })
}

//获取剩余下载次数
export function getDownloadTimesApi(){
    return request({
        url: '',
        method: 'get',
    })
}
//Excel数据接口
export function calculatedDataFootExcelApi(data){
    return request({
      url: '/admin/statistics/excel/count',
      method: 'get',
      params: data
    })
  }
//高级检索接口
export function advancedQueryApi(data){
    return request({
      url: '/admin/organization/patientfoot/queryAll',
      method: 'get',
      params: data
    })
}

export function downloadBatchOriginalFootZipFileApi(data){
    return request({
        url:'/scanning/downloadFile/footZipFile/downloadBatchOriginalFootZipFile',
        method:'get',
        params:data,
        responseType:'blob',
        onDownloadProgress (progress) {
               console.log(Math.round(progress.loaded / progress.total * 100) + '%');
              }
    })
    
}